<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\Weixin */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="weixin-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'code')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'gzh_id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'gzh_img', ['options'=>['class'=>''] ,'inputOptions' => ['class' => 'form-control']])->fileInput([ 'value'=>'']); ?>

    <?= Html::img('/uploads/gzhimg/'.$model->gzh_img)?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('app', '新建') : Yii::t('app', '保存'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>
    <?php ActiveForm::end(); ?>
</div>
